-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Add .NET-specific .editorconfig
#14803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] Add .NET-specific .editorconfig
#14803
Conversation
.editorconfig with C# style preferences
.editorconfig with C# style preferences
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
You touched untouchable. This file will be growing soon fast, I propose to create new one in Now the question is what rules we can apply at this moment, and what rules we want to apply at the end of the story. The end of the story, I guess, when we follow rules applied by the dotnet itself (https://github.com/dotnet/runtime/blob/main/.editorconfig). |
|
@nvborisenko Sure, I'll make another file in the The reason I wanted to add this is specifically for styles this project uses, which are different from the default .NET style. The biggest one is prepending every instance member with |
|
The .NET runtime has all their configuration in the newer .globalconfig format, their .editorconfig file is just for the baseline https://github.com/dotnet/runtime/blob/main/eng/CodeAnalysis.src.globalconfig |
|
So, prepare for long discussion! |
|
I looked it up, |
| EndProject | ||
| Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebDriver.Support.Tests", "test\support\WebDriver.Support.Tests.csproj", "{2136C695-2526-45E0-AE1D-68FBBC6A9DE2}" | ||
| EndProject | ||
| Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
I finished porting the .NET runtime's .editorconfig settings into our own, with the exception of the specific guidelines we use (the |
.editorconfig

User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Specify
.editorconfigsettings for style references within the repo, at least for rules which are not considered "default" by the average IDE.Motivation and Context
This will prevent suggestions for changes which are out of line with the style of the .NET code. In fact, it will enable some fixers such as
IDE0009: Add this.to the code suggestions.Types of changes
Checklist
PR Type
enhancement, configuration changes
Description
.editorconfigfile to align with C# style preferences.varand type qualification for various C# elements.Changes walkthrough 📝
.editorconfig
Update .editorconfig with C# style preferences.editorconfig
creation.
varusage rules for apparent types and built-in types.properties.